package com.sky.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sky.dto.*;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.OrderOverViewVO;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

/**
 * @author 86158
 * @description 针对表【orders(订单表)】的数据库操作Service
 * @createDate 2025-08-25 21:22:35
 */
public interface OrdersService extends IService<Orders> {

    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    void paySuccess(String outTradeNo);

    Result reminder(Long id);


    void cancel(OrdersRejectionDTO ordersRejectionDTO);

    OrderOverViewVO countStatus();

    void complete(Long id);

    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    void confirm(Long id);

    OrderVO getOrderDetailsById(Long id);

    IPage<Orders> listOredsers(IPage<Orders> page1, OrdersPageQueryDTO ordersPageQueryDTO);

    void delivery(Long id);

    void repetition(Long id);

    void cancelorder(Long id);


    PageResult pageQuery4User(int page, int pageSize, Integer status);
}
